package com.erp.erp_servers.Customer2Bank.imp;

import com.erp.erp_dao.Customer2Bank.ICustomer2BankDAO;
import com.erp.erp_entitys.Customer2Bank.Customer2BankEntity;
import com.erp.erp_entitys.Customer2Bank.Customer2BankEntityExample;
import com.erp.erp_servers.Customer2Bank.ICustomer2BankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ImpCustomer2BankService
 * @Description TODO
 * @Author songjizhen
 * @Date 2020-06-29 20:05
 * @Version 1.0
 */
@Service
public class ImpCustomer2BankService implements ICustomer2BankService {
    @Autowired
    ICustomer2BankDAO customer2BankDAO;
    @Override
    public long countByExample(Customer2BankEntityExample example) {
        return customer2BankDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(Customer2BankEntityExample example) {
        return customer2BankDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return customer2BankDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Customer2BankEntity record) {
        return customer2BankDAO.insert(record);
    }

    @Override
    public int insertSelective(Customer2BankEntity record) {
        return customer2BankDAO.insertSelective(record);
    }

    @Override
    public List<Customer2BankEntity> selectByExample(Customer2BankEntityExample example) {
        return customer2BankDAO.selectByExample(example);
    }

    @Override
    public Customer2BankEntity selectByPrimaryKey(Integer id) {
        return customer2BankDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Customer2BankEntity record, Customer2BankEntityExample example) {
        return customer2BankDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Customer2BankEntity record, Customer2BankEntityExample example) {
        return customer2BankDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Customer2BankEntity record) {
        return customer2BankDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Customer2BankEntity record) {
        return customer2BankDAO.updateByPrimaryKey(record);
    }
}
